import Mock from 'mockjs';
// 添加提借
Mock.mock(RegExp('/museum-clue/clue/addToBorrow' + '.*'), 'post', {
  code: 200,
  message: '请求成功！',
  msg: 'ok',
  data: [
    {
      id: 'tj1',
      staffId: '1',
      collectionId: '15',
      borrowTypeId: '4',
      applicationNumber: 'test',
      number: 1,
      startTime: '2020-12-1',
      endTime: '2021-12-1',
      state: 0
    }
  ]
});
// 我的提借
Mock.mock(RegExp('/museum-clue/clue/myBorrow' + '.*'), 'post', {
  code: 200,
  message: '请求成功！',
  msg: 'ok',
  data: [
    {
      id: 'tj1',
      staffId: '1',
      collectionId: '15',
      borrowTypeId: '4',
      applicationNumber: 'test',
      number: 1,
      startTime: '2020-12-1',
      endTime: '2021-12-1',
      state: 0
    }
  ]
});
Mock.mock(RegExp('/museum-clue/clue/collectionInUse' + '.*'), 'post', {
  code: 200,
  message: '请求成功！',
  msg: 'ok',
  data: [
    {
      id: '11',
      name: '资治通鉴一',
      number: 1,
      picture: 'null',
      weight: '66.00g',
      dynasty: null,
      size: null,
      state: 2,
      numberType: '单件',
      classificationType: '馆藏纸质文物',
      classificationNumber: '乙11',
      idType: '藏品总登记号'
    },
    {
      id: '15',
      name: '铜豆',
      number: 2,
      picture: 'null',
      weight: '11.00',
      dynasty: '清朝',
      size: null,
      state: 1,
      numberType: '单件',
      classificationType: '馆藏金属文物',
      classificationNumber: 'QT120',
      idType: '藏品总登记号'
    }
  ]
});
Mock.mock(RegExp('/museum-clue/clue/getAllCol' + '.*'), 'post', {
  code: 200,
  message: '请求成功！',
  data: {
    total: 14,
    ClueList: [
      {
        id: 33,
        sourceCome: '测试',
        yearId: 0,
        gradeId: 0,
        sortId: 0,
        relativePhone: '测试',
        userName: '测试',
        findTime: '测试',
        identifyDesc: '测试',
        clueDesc: '测试',
        clueName: '测试',
        price: 0,
        relativeName: '测试',
        userIdCard: '测试',
        way: '测试',
        createTime: '2021-01-24 20:42:50',
        updateTime: '2021-01-24 20:42:50',
        yearName: null,
        sortName: null,
        gradeName: null,
        status: -1
      },
      {
        id: 32,
        sourceCome: 'dt1',
        yearId: 0,
        gradeId: 0,
        sortId: 0,
        relativePhone: '136********',
        userName: 'dt1',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: 'dt1',
        price: 0,
        relativeName: 'dt1',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-24 09:51:58',
        updateTime: '2021-01-24 09:51:58',
        yearName: null,
        sortName: null,
        gradeName: null,
        status: 1
      },
      {
        id: 31,
        sourceCome: '测试3',
        yearId: 0,
        gradeId: 0,
        sortId: 0,
        relativePhone: '136********',
        userName: '测试3',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: '测试3',
        price: 0,
        relativeName: '测试3',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-23 13:08:23',
        updateTime: '2021-01-23 13:08:23',
        yearName: null,
        sortName: null,
        gradeName: null,
        status: 0
      },
      {
        id: 30,
        sourceCome: '测试2',
        yearId: 0,
        gradeId: 0,
        sortId: 0,
        relativePhone: '136********',
        userName: '测试2',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: '测试2',
        price: 0,
        relativeName: '测试2',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-23 13:08:02',
        updateTime: '2021-01-23 13:08:02',
        yearName: null,
        sortName: null,
        gradeName: null,
        status: -1
      },
      {
        id: 29,
        sourceCome: '测试1',
        yearId: 0,
        gradeId: 0,
        sortId: 0,
        relativePhone: '136********',
        userName: '测试1',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: '测试1',
        price: 0,
        relativeName: '测试1',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-23 13:07:33',
        updateTime: '2021-01-23 13:07:33',
        yearName: null,
        sortName: null,
        gradeName: null,
        status: 0
      },
      {
        id: 28,
        sourceCome: '山西省大同市',
        yearId: 0,
        gradeId: 1,
        sortId: 2,
        relativePhone: '136********',
        userName: '张三',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: '线索1',
        price: 101,
        relativeName: '小张',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-21 13:07:47',
        updateTime: '2021-01-21 13:07:47',
        yearName: null,
        sortName: '不可移动文物',
        gradeName: '一级文物',
        status: 1
      },
      {
        id: 27,
        sourceCome: '山西省大同市',
        yearId: 1,
        gradeId: 1,
        sortId: 1,
        relativePhone: '136********',
        userName: '张三',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: '线索1',
        price: 2000,
        relativeName: '张三',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-18 17:27:01',
        updateTime: '2021-01-18 17:27:01',
        yearName: '现代',
        sortName: '可移动文物',
        gradeName: '一级文物',
        status: 1
      },
      {
        id: 25,
        sourceCome: '山西省大同市',
        yearId: 6,
        gradeId: 1,
        sortId: 1,
        relativePhone: '136********',
        userName: '张三',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: '线索1',
        price: 0,
        relativeName: '小张',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-18 16:43:58',
        updateTime: '2021-01-18 16:43:58',
        yearName: '明代',
        sortName: '可移动文物',
        gradeName: '一级文物',
        status: -1
      },
      {
        id: 21,
        sourceCome: '山西省大同市',
        yearId: 5,
        gradeId: 1,
        sortId: 1,
        relativePhone: '136********',
        userName: 'dj',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: '线索1',
        price: 121,
        relativeName: '小张',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-18 15:30:17',
        updateTime: '2021-01-18 15:30:17',
        yearName: '元代',
        sortName: '可移动文物',
        gradeName: '一级文物',
        status: -1
      },
      {
        id: 20,
        sourceCome: '山西省大同市',
        yearId: 1,
        gradeId: 1,
        sortId: 1,
        relativePhone: '136********',
        userName: 'dj',
        findTime: '2021-01-05 09:50:18',
        identifyDesc: '拣选的描述',
        clueDesc: '这是一个大宝贝啊',
        clueName: '线索1',
        price: 0,
        relativeName: '小张',
        userIdCard: '14021120000******',
        way: '有偿捐赠',
        createTime: '2021-01-18 15:29:19',
        updateTime: '2021-01-18 15:29:19',
        yearName: '现代',
        sortName: '可移动文物',
        gradeName: '一级文物',
        status: 1
      }
    ]
  }
});

Mock.mock(RegExp('/museum-clue/clue/clueInfo' + '.*'), 'post', {
  code: 200,
  message: '请求成功！',
  data: {
    Totals: 3,
    activities: [
      { clueUser: '录入员1', clueTime: '2021-01-24', status: 1, desc: 'da001' },
      {
        clueUser: '价格审核员1',
        clueTime: '2021-01-24',
        status: 1,
        desc: 'dt002'
      },
      { clueUser: '审核员', clueTime: '2021-01-24', status: 1, desc: 'dt003' }
    ],
    status: 1
  }
});
